package news.example;

import java.util.Date;

/**
 * @author 19373
 */
public class Topic {
    private Integer id;
    private String topicName;
    private Date createTime;

    public Topic(Integer id, String topicName, Date createTime) {
        this.id = id;
        this.topicName = topicName;
        this.createTime = createTime;
    }

    public Topic() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTopicName() {
        return topicName;
    }

    public void setTopicName(String topicName) {
        this.topicName = topicName;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Topic{" +
                "id=" + id +
                ", topicName='" + topicName + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}
